import request from '@/utils/request'
/**
 * 专家列表
 * @param params
 * @returns {*}
 */
export function getExpertPageApi(params) {
  return request({
    url: '/getExpertPage',
    method: 'GET',
    params
  })
}
/**
 * 专家
 * @param params
 * @returns {*}
 */
export function getExpertByIdApi(params) {
  return request({
    url: '/getExpertById',
    method: 'GET',
    params
  })
}

/**
 * 编辑专家
 * @param data
 * @returns {*}
 */
export function editExpertApi(data) {
  return request({
    url: '/editExpert',
    method: 'POST',
    data
  })
}
/**
 * 删除专家
 * @param params
 * @returns {*}
 */
export function delExpertApi(params) {
  return request({
    url: '/delExpert',
    method: 'GET',
    params
  })
}
